/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-09-20
 * Time:12:46
 */
public class Test2 {
    public static void main(String[] args) {
        HeadLink headLink = new HeadLink();
        headLink.addLast(1);
        headLink.addLast(1);
        headLink.addLast(1);
        headLink.addLast(1);
        headLink.addLast(2);
        headLink.display();
        headLink.clean();
        headLink.display();
    }
    {
//        System.out.println(headLink.size());
//        System.out.println(headLink.conatains(2));
        //        headLink.addLast(1);
//        headLink.addLast(1);
//        headLink.addLast(1);
//        headLink.addLast(1);
//        headLink.addLast(1);
//        headLink.addIndex(4,9);
//        headLink.removeAllVal(1);

//        headLink.clean();
//        headLink.display();
    }
}
